import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/HomeView.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    {
      path: '/',
      name: 'home',
      component: HomeView,
    },
    {
      path: '/listkeshi',
      component: () => import('@/views/Keshi/Listkeshi.vue'),
    },
    {
      path: '/upkeshi',
      component: () => import('@/views/Keshi/Upkeshi.vue'),
    },
    {
      path: '/addkeshi',
      component: () => import('@/views/Keshi/Addkeshi.vue'),
    },
    {
      path: '/addyesheng',
      component: () => import('@/views/YeSheng/Addyesheng.vue'),
    },
    {
      path: '/listyesheng',
      component: () => import('@/views/YeSheng/listyesheng.vue'),
    },
    {
      path: '/listbingfang',
      component: () => import('@/views/Bingfang/Listbingfang.vue'),
    },
    {
      path: '/addbingfang',
      component: () => import('@/views/Bingfang/Addbingfang.vue'),
    },
  ],
})

export default router
